package com.leejxx.health.dao;

import com.github.pagehelper.Page;
import com.leejxx.health.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashSet;
import java.util.List;

/**
 * @Author LeeJx
 * @ClassName PermissionDao
 * @Description TODO
 * @date 2021/1/9 19:44
 * @Version 1.0
 */
public interface PermissionDao {
    List<Permission> findByRoleId(@Param("id") Integer id);

    Page<Permission> findByCondition(@Param("queryString") String queryString);

    void add(Permission permission);

    Permission findById(@Param("permissionId") Integer permissionId);

    void edit(Permission permission);

    void delete(@Param("permissionId") Integer permissionId);

    LinkedHashSet<Permission> findAllPermission();
}
